package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 导入临时对象 d_table_import
 * 
 * @author fulan
 * @date 2020-09-14
 */
public class DTableImport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目ID */
    private String projectId;

    /** 表code */
    private String tableCode;

    /** 表名称 */
    private String tableName;

    /** 字段数量 */
    private Long columnNum;

    /** 所在目录ID */
    private String contentId;

    /** 排序 */
    private Long dSort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    /** 导入记录表ID */
    private String importId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setProjectId(String projectId) 
    {
        this.projectId = projectId;
    }

    public String getProjectId() 
    {
        return projectId;
    }
    public void setTableCode(String tableCode) 
    {
        this.tableCode = tableCode;
    }

    public String getTableCode() 
    {
        return tableCode;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setColumnNum(Long columnNum) 
    {
        this.columnNum = columnNum;
    }

    public Long getColumnNum() 
    {
        return columnNum;
    }
    public void setContentId(String contentId) 
    {
        this.contentId = contentId;
    }

    public String getContentId() 
    {
        return contentId;
    }
    public void setdSort(Long dSort) 
    {
        this.dSort = dSort;
    }

    public Long getdSort() 
    {
        return dSort;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setImportId(String importId) 
    {
        this.importId = importId;
    }

    public String getImportId() 
    {
        return importId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("tableCode", getTableCode())
            .append("tableName", getTableName())
            .append("columnNum", getColumnNum())
            .append("contentId", getContentId())
            .append("dSort", getdSort())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("delFlag", getDelFlag())
            .append("importId", getImportId())
            .toString();
    }
}
